from pygame import *




class Gameinput:
    __slots__=("wantexit")
    
    def __init__(self):
        print("init Gameinput")
        self.wantexit = False
        
    def getinput(self):
        for e in event.get():
                if e.type == QUIT:
                    self.wantexit = True
        
        
    def exit(self):       
        return self.wantexit
